import Vue from 'vue'
import App from '@/app'
import store from '@/store/index'
import router from '@/router/router'
import {sync} from 'vuex-router-sync'
import ElementUI  from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);

//同步状态
sync(store,router);

new Vue({
  el:'#app',
  router,
  store,
  render:(h)=>h(App)
})